﻿/*
* Created by SharpDevelop.
* User: V.I.Evgenyev
* Date: 16.11.2011
* Time: 9:55
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Windows.Forms;

namespace TinyCAT
{
/// <summary>
/// Description of Setting.
/// </summary>
	public partial class Setting : Form
	{
		public Setting()
		{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
		InitializeComponent();

//
// TODO: Add constructor code after the InitializeComponent() call.
//
		}
		void SettingLoad(object sender, EventArgs e)
		{
			numericUpDown1.Value = (decimal) myAPP.setting.Coincidence;
		}

		void ListView1ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
		{
			myAPP.setting.LangFrom = listView1.SelectedItems[0].Text;
		}
		void ListView2SelectedIndexChanged(object sender, EventArgs e)
		{
			myAPP.setting.LangTo = listView2.SelectedItems[0].Text;
		}
		void NumericUpDown1ValueChanged(object sender, EventArgs e)
		{
			myAPP.setting.Coincidence = (float) numericUpDown1.Value;
		}
	}
}
